package com.cxf.windex;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author chenxf
 * @date 3/7/2018
 * @description boot启动类
 */
@SpringBootApplication
@ServletComponentScan("com.cxf.windex.config.druid")
@EnableScheduling
@EnableCaching
@EnableAsync
public class BootApplication {
  public static void main(String[] args) {
    new SpringApplicationBuilder(BootApplication.class).web(true).run(args);    }
}
